<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="js/jquery-2.0.3.js"></script>
<title>ZooKeeper</title>
<script type="text/javascript">
function add(){
	var path = $('#add').val();
	$.post("servlet/ZooKeeperNode_addNode", {
		"path" : path,
	}, function(data) {
	
	});
}
function del(){
	var path = $('#del').val();
	$.post("servlet/ZooKeeperNode_delNode", {
		"path" : path,
	}, function(data) {
	
	});
}
function ask(){
	var path = $('#ask').val();
	$.post("servlet/ZooKeeperNode_exitNode", {
		"path" : path,
	}, function(data) {
	
	});
}
function askchildren(){
	var path = $('#askchildren').val();
	$.post("servlet/ZooKeeperNode_getChildrenNode", {
		"path" : path,
	}, function(data) {
	
	});
}
</script>
</head>
<body>
	<table>
		<tr>
			<td>增加节点:</td>
			<td><input type="text" id="add"/></td>
			<td><input type="button" onclick="add()" value="提交"/></td>
		</tr>
		<tr>
			<td>删除节点:</td>
			<td><input type="text" id="del"/></td>
			<td><input type="button" onclick="del()" value="提交"/></td>
		</tr>
		<tr>
			<td>查询节点:</td>
			<td><input type="text" id="ask"/></td>
			<td><input type="button" onclick="ask()" value="提交"/></td>
		</tr>
		<tr>
			<td>查询子节点:</td>
			<td><input type="text" id="askchildren"/></td>
			<td><input type="button" onclick="askchildren()" value="提交"/></td>
		</tr>
	</table>
</body>
</html>